package com.yuanthink.gwt.client.workplace;

import com.extjs.gxt.ui.client.Style.HideMode;
import com.extjs.gxt.ui.client.data.BaseTreeModel;
/**
 * 
 * @author 06peng
 *
 */
public class Category extends BaseTreeModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected Category() {
	}

	public Category(String name) {
		set("name", name);
	}

	public String getName() {
		return (String) get("name");
	}

	public String toString() {
		return getName();
	}

	public void add(String title, String actionId) {
		add(new Entry(title, actionId));
	}

	public void add(String title, String actionId, boolean fill) {
		add(new Entry(title, actionId, fill));
	}

	public void add(String title, String actionId,
			boolean fill, boolean closable, HideMode hideMode) {
		add(new Entry(title, actionId, fill, closable, hideMode));
	}
}
